package com.kinghood.infrastructure.util.excel;

import com.alibaba.excel.metadata.Head;
import com.alibaba.excel.write.style.column.AbstractHeadColumnWidthStyleStrategy;

public class MyColumnWidthStyleStrategy extends AbstractHeadColumnWidthStyleStrategy {
    @Override
    protected Integer columnWidth(Head head, Integer integer) {
        if (head.getHeadNameList().get(0).equals("图片")) {
            return 16;
        }
        return 9;
    }
}
